//
//  ZhiFuTypeCell.m
//  XDBaseFrameWork
//
//  Created by XD-XY on 10/15/14.
//  Copyright (c) 2014 XD-XY. All rights reserved.
//

#import "ZhiFuTypeCell.h"

@implementation ZhiFuTypeCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        [self makeViews];
    }
    return self;
}

-(void)makeViews
{
    UIView * view = [UIView initViewRect:CGRectMake(8, 0, UI_SCREEN_WIDTH-16, 50) andBackGroudColor:[UIColor whiteColor]];
    [self.contentView addSubview:view];
    
    
    self.zhifuiconIV = [UIImageView initImageViewRect:CGRectMake(15,10, 30, 30) andImage:nil andUserInteractionEnabled:YES];
    
    self.titleLB = [UILabel initLabelText:@"" andRect:CGRectMake(width_x(_zhifuiconIV)+15,11,200,14) andBackGroudColor:mClearColor andTextFont:[UIFont systemFontOfSize:14] andTextColor:UIColorFromRGB(0x1f1f1f) andTextAlignment:NSTextAlignmentLeft];
    self.contentLB = [UILabel initLabelText:@"" andRect:CGRectMake(_titleLB.frame.origin.x,height_y(_titleLB)+3, 200, 11) andBackGroudColor:mClearColor andTextFont:[UIFont systemFontOfSize:11] andTextColor:UIColorFromRGB(0x999999) andTextAlignment:NSTextAlignmentLeft];
    
    self.chooseBtn = [UIButton initButton:CGRectMake(532/2.0f,12.5, 25, 25) btnNorImage:LOADIMAGE(@"circleBg@2x") btnDisableBtn:LOADIMAGE(@"selectedCircleBg@2x") btnTitle:nil titleNorColor:nil titleSelectColor:nil titleFont:nil];
    _chooseBtn.userInteractionEnabled = NO;
    
    self.downline = [UIView initViewRect:CGRectMake(15, 49.5, UI_SCREEN_WIDTH-16-30, 0.5) andBackGroudColor:UIColorFromRGB(0xdddddd)];
 
    [view addSubview:_zhifuiconIV];
    [view addSubview:_titleLB];
    [view addSubview:_contentLB];
    [view addSubview:_chooseBtn];
    [view addSubview:_downline];
}

- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
